package kr.or.kosta.otr.persistence.admin;

import java.sql.SQLException;
import java.util.HashMap;

import javax.annotation.Resource;

import kr.or.kosta.otr.vo.AdminVO;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("AdminDao")
public class AdminDaoImpl implements AdminDao {
	@Resource(name="sqlMapClient")
	private SqlMapClient sqlMapClient;
		
	@Override
	public AdminVO getAdmin() throws SQLException{
		return (AdminVO)sqlMapClient.queryForObject("Admin.getAdmin");
	}

	@Override
	public AdminVO getOneAdmin(HashMap<String, String> map) throws SQLException {
		// TODO Auto-generated method stub
		return (AdminVO)sqlMapClient.queryForObject("Admin.getOneAdmin",map);
	}
}
